<template>
  <el-dialog
    v-model="dialogVisible"
    title="Tips"
    width="500"
    :before-close="handleClose"
    :="$attrs"
  >
    <div>This is a message</div>
    <template #footer>
      <div class="dialog-footer">
        <el-button @click="handleCancel">取消</el-button>
        <el-button type="primary" @click="handleConfirm">确定</el-button>
      </div>
    </template>
  </el-dialog>
</template>

<script setup>
import {useAttrs} from 'vue'
let $attrs = useAttrs();

const dialogVisible = ref(false)

const open = () => {
  dialogVisible.value = true
}
const handleClose = () => {
}
const handleCancel = () => {
}
const handleConfirm = () => {
}
defineExpose({ open });
</script>

<style lang="scss" scoped>

</style>
